package top.kaoshanji.p4ch25b;

/**
 * 代码清单-p4ch25b-314页b：普通员工
 * @author kaoshanji
 * ^_^
 * create time 2025/3/27 10:27
 */
public class CommonEmployee extends Employee {

    private String job;

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    // 我允许访问者访问
    @Override
    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }
}
